<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/8/25 0025
 * Time: 下午 5:03
 */
namespace app\back\controller;
class UserCompany extends \app\back\controller\BaseAdmin{
    function set_model()
    {
        $this->model=new \app\model\UserCompany();
    }

    function list_init(){
        $model=$this->get_model();
        return [


            'list_title'=>['ID','公司名字','公司介绍','logo','从事行业','详细地址','联系人','联系电话','企业邮箱','联系人职务'],
            'list_data_name'=>['id','company_name','introduce','logo','industry','address','link_name','link_mobile','company_email','link_position'],
            'list_data'=>$model->order("id","desc")->paginate(),
            'page_html'=>$model->paginate()->render(),
            'type'=>[
                ['name'=>'logo','type'=>'image']
            ],
            'hide_edit'=>1,
            'hide_delete'=>1

        ];
    }
}